package com.ruoyi.business.domain.entity.article;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

public class Article extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 文章id */
    private Long id;

    @Excel(name = "文章标题")
    private String articleTitle;

    /**
     * 文章内容
     */
    private String content;

    /*
    * 附件
    * */
    private String attachFile;
/*
* 浏览量
* */
    @Excel(name = "浏览量")
    private Integer views;

    /*
    * 展示状态:0-下架，1上架
    * */
    @Excel(name = "展示状态")
    private Integer status;

    /*
    * 排序
    * */
    private Integer sort;
    /*
    * 状态，-1为删除，0为正常；
    * */
    private Integer delFlag;

    /*
    * 版本号
    * */
    private Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAttachFile() {
        return attachFile;
    }

    public void setAttachFile(String attachFile) {
        this.attachFile = attachFile;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", articleTitle='" + articleTitle + '\'' +
                ", content='" + content + '\'' +
                ", attachFile='" + attachFile + '\'' +
                ", views=" + views +
                ", status=" + status +
                ", sort=" + sort +
                ", delFlag=" + delFlag +
                ", version=" + version +
                '}';
    }
}
